const http = require('http')
const querystring = require('querystring')
const urlLib = require('url')

var app = http.createServer(function(req, res) {

    // if (req.url.indexOf('?') < 0) {
    //     return
    // }
    // let GET = querystring.parse(req.url.split('?')[1])

    let GET = urlLib.parse(req.url, true)

    console.log(GET);

    res.write('This is response')
    res.end()
})

app.listen(8080)
